/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.ac.cput.Toto.polymorphism_princ.poly_model;

/**
 *
 * @author Jeffrey
 */
public abstract class Student {

    private String name;
    private long stud_no;

    public Student(String name, long stud_no) {
        this.name = name;
        this.stud_no = stud_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getStud_no() {
        return stud_no;
    }

    public void setStud_no(long stud_no) {
        this.stud_no = stud_no;
    }

    abstract public double calInterest(double amount);



}
